home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Views / Standard Views / SolidView.cp < prev    next >
Encoding:
Text File  |  1997-06-28  |  416 b   |  23 lines  |  [TEXT/CWIE]

  1. // SolidView.cp
  2.  
  3. #ifndef SolidView_h
  4. #include "SolidView.h"
  5. #endif
  6. #ifndef ForegroundColorMaintainer_h
  7. #include "ForegroundColorMaintainer.h"
  8. #endif
  9. #ifndef ViewMap_h
  10. #include "ViewMap.h"
  11. #endif
  12.  
  13. void SolidView::Draw( const ViewMap& map ) const
  14.   {
  15.     ForegroundColorMaintainer cm( ForegroundColor() );
  16.     PaintRect( &map.Bounds() );
  17.   }
  18.  
  19. void SolidView::ForegroundColorChanged()
  20.   {
  21.     ViewMap( *this ).Invalidate();
  22.   }
  23.